package com.cxg.allsys.expertsys.controller;

import com.cxg.allsys.expertsys.pojo.Article;
import com.cxg.allsys.expertsys.pojo.Comment;
import com.cxg.allsys.expertsys.service.IExpertsysService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/selectdat")
@RestController
@Slf4j
public class SelectComment {

    @Autowired
    private IExpertsysService iExpertsysSevice;

    //显示评论
    @RequestMapping("/DataComment")
    public List<Comment> dataComment(Integer expert_id){
        System.out.println(expert_id);
        return  iExpertsysSevice.selectComment(expert_id);
    }
}
